﻿package net.wangit.view.element.component;

import net.wangit.Page;
import net.wangit.Row;
import net.wangit.context.ActionContext;
import net.wangit.support.ElementWriter;
import net.wangit.util.Checker;
import net.wangit.view.element.ElementComponent;

public final class ButtonElement extends ElementComponent {

	private static final ElementWriter writer = new ButtonElementWriter();

	public ButtonElement() {
	}

	public void configure(Row row1) {
	}

	protected ElementWriter getWriter() {
		return writer;
	}

	protected void cloneAfter(ActionContext actioncontext, Page page1) {
	}

	public String getCss() {
		String css = super.getCss();
		if (!Checker.isEmpty(css))
			return css;
		if (isToolbarElement())
			return "E5B";
		else
			return "E5";
	}

}
